//////////////////////////////////////////////////////////////////////////////////////////////
//	File			:	"BattleMap.h"
//
//	Author			:	Mike Davis, Matt Stover, James Thornton, Keith Webster
//	
//	Project			:	TacWars
//
//	Last Modified	:	11/6/2013
//
//	Purpose			:	
//
//////////////////////////////////////////////////////////////////////////////////////////////
#pragma once
#include <vector>
using std::vector;
#include "Graph.h"
#include "../GameObjects/Entity.h"
enum TerrainType {Grass,Road,Bunker,Forest,High_Ground,Swamp,Power_Node};
struct TileM
{
	Entity* OccupyingUnit;
	TerrainType Type;
	POINT position;
	bool isNode;
	bool isFlag;
	bool isHigh;
	bool T1Flag;
	bool FlagStart;
	bool isCollide;
	bool startArea;
	int moveAmount;
	int defenseBonus;
	int attackBonus;
	RECT srcRect;
	int ImageId;
};
class BattleMap
{
private:
	Graph<TileM*> Map;
	int width;
	int height;
public:
	BattleMap();
	~BattleMap();
	Graph<TileM*> GetMap() { return Map;}
	int GetWidth() {return width;}
	int GetHeight() {return height;}
	void CreateBattleMap(vector<TileM>&tile,int w,int h);
	void Render(int w, int y);
	int FindTile( int x, int y) const;

};